# -*- encoding: utf-8 -*-
'''
@File    :   6.py
@Time    :   2022/12/15 16:38:57
@Author  :   Cms 
@Version :   1.0
@Contact :   2267000140@qq.com
@WebSite    :   www.baidu.com
'''

# here put the import lib
from studentManager import StudentManager

# 六  用面向对象,实现一个学生Python成绩管理系统;
#       学生的信息存储在文件中;学生信息的字段有(班级,学号,姓名, Python成绩)
#       实现对学生信息及成绩的增,删,改,查方法;

if __name__ == "__main__":

    SM1 = StudentManager()
    # 展示菜单
    SM1.showMenu()

    while(True):
        a = int(input("请输入您的指令："))
        if a == 0:
            SM1.exitsystem()
        elif a == 1:
            SM1.addstudent()
        elif a == 2:
            SM1.delstudent()
        elif a == 3:
            SM1.modstudent()
        elif a == 4:
            SM1.findstudent()
        elif a == 5:
            SM1.showstudent()
        else:
            print("您输入的指令有误！")

